package cn.hznc.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Author：Administrator
 * @Date：2023/8/10 10:58
 */
@Getter
@Setter
@Table(name = "t_allot_employee")
@TableName(value = "t_allot_employee")
public class AllotEmployeeEntity{

    /**
     * 系统编码
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 开始时间
     */
    @Column(name = "start_time",type = MySqlTypeConstant.DATETIME)
    @TableField("start_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time",type = MySqlTypeConstant.DATETIME)
    @TableField("end_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 机床名
     */
    @Column(name = "equipment_name",type = MySqlTypeConstant.DATETIME)
    @TableField("equipment_name")
    private String equipmentName;

    /**
     * 人员名
     */
    @Column(name = "employee_name",type = MySqlTypeConstant.DATETIME)
    @TableField("employee_name")
    private String employeeName;

}
